﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HomeMemberList.ascx.cs" Inherits="SocialFront.Web.usercontrols.Membership.HomeMemberList" %>
<%@ Import Namespace="SocialFront.Entities"%>

<h2>Recent Members</h2>

<section class="thumb_grid fullpanel">
<asp:ListView ID="membersList" runat="server">
    <LayoutTemplate>
        <ul><asp:PlaceHolder ID="itemPlaceholder" runat="server" /></ul>
    </LayoutTemplate>
    <ItemTemplate>
        <li>
            <a href="<%# ((Member)Container.DataItem).MemberUrl %>">
                <img src="<%# ((Member)Container.DataItem).Avatar.ImageUrl %>" />
            </a>
            <br />
            <a href="<%# ((Member)Container.DataItem).MemberUrl %>"><%# ((Member)Container.DataItem).LoginName %></a>
            <br />
            <%# ((Member)Container.DataItem).CreatedDate.ToString("dd MMM yyyy")%>
        </li>
    </ItemTemplate>
    <EmptyDataTemplate><p>No Images have been added yet!</p></EmptyDataTemplate>
</asp:ListView>
<section class="thumb_grid fullpanel">